/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package service.reportCenter.kegReport;

import com.openbrew.openbrewrf.ScanTblKeg;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author chapmand
 */
@XmlRootElement(name="kegReport")
@XmlAccessorType(XmlAccessType.FIELD)
public class KegReport {
    private String custName;
    private String beerName;
    private String packageName;
    private int days;
    private int kegID;
    private boolean kegLost;
    private boolean kegOOC;
    private Date kegSoldDate;

    public KegReport() {
    }

    public KegReport(final ScanTblKeg keg, final String custName, final String beerName
            , final String packageName, final int days) {
        super();
        this.custName = custName;
        this.beerName = beerName;
        this.packageName = packageName;
        this.days = days;
        this.kegID = keg.getKegID();
        this.kegLost = keg.getKegLost();
        this.kegOOC = keg.getKegOOC();
        this.kegSoldDate = keg.getDateSold();
    }

    public String getCustomerName() {
        return this.custName;
    }

    public String getBeerName() {
        return this.beerName;
    }

    public String getPackageName() {
        return this.packageName;
    }

    public int getDays() {
        return this.days;
    }

    public int getKegID() {
        return kegID;
    }

    public boolean isKegLost() {
        return kegLost;
    }

    public boolean isKegOOC() {
        return kegOOC;
    }

    public Date getKegSoldDate() {
        return kegSoldDate;
    }
}
